#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<unordered_set>
#include<cstring>
using namespace std;
const int N = 2010, M = 6010;
int n, m, k;
int h[N], e[M], ne[M], f[N], idx;
void add(int a, int b)
{
    e[idx] = b, ne[idx] = h[a], h[a] = idx++;
}
int sg(int x)
{
    if (f[x] != -1) return f[x];
    unordered_set<int> s;
    for (int i = h[x]; ~i; i = ne[i])
    {
        int j = e[i];
        s.insert(sg(j));
    }
    for (int i = 0;; i++)
    {
        if (!s.count(i)) return f[x] = i;
    }
}
int main()
{
    cin >> n >> m >> k;
    memset(h, -1, sizeof h);
    memset(f, -1, sizeof f);
    for (int i = 0; i < m; i++)
    {
        int a, b;
        cin >> a >> b;
        add(a, b);
    }
    int res = 0;
    for (int i = 0; i < k; i++)
    {
        int x;
        cin >> x;
        res ^= sg(x);
    }
    if (res) cout << "win" << endl;
    else cout << "lose" << endl;
    return 0;
}